import 'package:flutter/material.dart';
import 'package:flutter_color_plugin/flutter_color_plugin.dart';
import 'package:yw_bapp/model/order_list_model.dart';
import 'package:yw_bapp/utils/common_class.dart';
import 'package:yw_bapp/widgets/detail_item_container.dart';
import 'package:yw_bapp/widgets/safe_area_bar_widget.dart';
const List  TAGLIST = ['当前状态','收款时间','订单金额','优惠折扣','订单号'];
class OrderDetail extends StatelessWidget {
  final detailObject detailItem;
  final AccountList accountItem;
  OrderDetail(this.detailItem, this.accountItem);
  @override
  Widget build(BuildContext context) {
    return Scaffold(
        appBar: XAppBar(
          statusBarColor: ColorUtil.color('#FFC49226'),
          bgColor: ColorUtil.color('#FFC49226'),
          title: "订单详情",
          fun: () {
            Navigator.pop(context);
          },
        ),
        body: Container(
          color: Color.fromRGBO(233, 233, 233, 1),
          padding: EdgeInsets.fromLTRB(15, 72, 15, 0),
          child: Column(
            children: [
              // 银行和尾号
              Container(
                margin: EdgeInsets.only(bottom: 8),
                child: Text(
                  '来自UsrName',
                  style: TextStyle(color: Colors.black, fontSize: 18),
                ),
              ),
              // 实际到账
              Row(
                mainAxisAlignment: MainAxisAlignment.center,
                children: [
                  Text(
                    "+",
                    style: TextStyle(color: Colors.black, fontSize: 18),
                  ),
                  Text(
                    '${accountItem.centScorePrice/100}',
                    style: TextStyle(
                        color: Colors.black,
                        fontSize: 40,
                        fontWeight: FontWeight.bold),
                  )
                ],
              ),
              // 详情
              DetailItemContainer(detailItem: detailItem,tagList: TAGLIST,type: 1,)
            ],
          ),
        ));
  }
}

